//
//  AttendanceConnection.h
//  BVCMS
//
//  Created by Allen Thomas on 11/18/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

@class MeetingMemberRecord;

@class MemberCheckinViewController;

#import <Foundation/Foundation.h>

@protocol AttendanceConnectionDelegate;

@interface AttendanceConnection : NSObject {
    MeetingMemberRecord *meetingMemberRecord;
	
    NSIndexPath *indexPathInTableView;
	
    id <AttendanceConnectionDelegate> delegate;
	
    NSMutableData *activeDownload;
	
    NSURLConnection *connection;
}

@property (nonatomic, retain) MeetingMemberRecord *meetingMemberRecord;

@property (nonatomic, retain) NSIndexPath *indexPathInTableView;

@property (nonatomic, assign) id <AttendanceConnectionDelegate> delegate;

@property (nonatomic, retain) NSMutableData *activeDownload;

@property (nonatomic, retain) NSURLConnection *connection;



- (void)startDownload;

- (void)cancelDownload;



@end



@protocol AttendanceConnectionDelegate 


- (void)attendanceDidChange:(NSIndexPath *)indexPath;
- (void)attendanceChangeFailed:(NSIndexPath *)indexPath;

@end

